package com.huilai.platform.country_platform.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 作者：洪霓
 * 日期：2023/3/28
 * 注释：
 */
public class ChatListDTO {
    //两者的关联id
    private Integer linkId;

    //聊天对象用户名
    private String toName;

    //最后一条信息
    private String lastMessage;

    //未读数
    private Integer unread;

    //最后一条信息发送时间
    private String sendTime;

    //发送者在哪个聊天框
    private Integer fromWindow;

    public ChatListDTO(){}

    public ChatListDTO(Integer linkId, String toName, String lastMessage, Integer unread, String sendTime, Integer fromWindow){
        this.linkId = linkId;
        this.toName = toName;
        this.lastMessage = lastMessage;
        this.unread = unread;
        this.sendTime = sendTime;
        this.fromWindow = fromWindow;
    }



    public Integer getLinkId() {
        return linkId;
    }

    public void setLinkId(Integer linkId) {
        this.linkId = linkId;
    }

    public String getToName() {
        return toName;
    }

    public void setToName(String toName) {
        this.toName = toName;
    }

    public String getLastMessage() {
        return lastMessage;
    }

    public void setLastMessage(String lastMessage) {
        this.lastMessage = lastMessage;
    }

    public Integer getUnread() {
        return unread;
    }

    public void setUnread(Integer unread) {
        this.unread = unread;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public Integer getFromWindow() {
        return fromWindow;
    }

    public void setFromWindow(Integer fromWindow) {
        this.fromWindow = fromWindow;
    }
}
